package com.gbk.clickhouseservicestruct.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.myweb.ck.mapping.ChTable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

@ChTable(name = "tig.T_TIG_TRACKS")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TIG_TRACKS {

    //区域号
    private int areano;

    //路口编号（路口号）
    private int juncno;

    //抓拍时间
    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date snaptime;

    //机动车动向ID
    //int64，用long处理
    private long trackid;

    //方向号
    private int dirno;

    //进出口类型
    private int lanedirtype;

    //车辆类型
    private int vehicleclass;

    //车身颜色
    private int vehiclecolor;

    //车辆品牌
    private int vehiclebrand;

    //车辆型号
    private int vehiclemodel;

    //车辆年款。多个可能值用英文逗号分隔
    private String vehiclestyles;

    //品牌种类
    private int plateclass;

    //车牌颜色
    private int platecolor;

    //车牌号
    private String plateno;

    //车辆行驶的角度
    private double driveangle;

    //世界坐标N
    private double n;

    //世界坐标E
    private double e;

    //车道号。车辆行驶方向最左车道为1，由左向右顺序编号。高精地图时输出
    private int laneno;

    //车辆速度
    private double speed;

    //0:非特殊车型 1:校车 2:泥头车 3:高危车 4:出租车 5:油罐车 6:吊车
    private int specialvehicletype;

    //目标宽度cm
    private int objectwidth;

    //目标长度cm
    private int objectlength;

    //目标高度cm
    private int objectheight;

    //高精地图laneId
    private String laneid;





}
